import urllib.request
# 获得用户主页的html
def ncst_response(uid):
    baseurl = "https://ncst.acmoj.top/user/" + uid
    request = urllib.request.Request(url=baseurl)
    response = urllib.request.urlopen(request)
    return response.read().decode('utf-8')


if __name__ == '__main__':
    print(ncst_response('1589'))
